package file1;

import java.io.File;
import java.util.Scanner;

public class Test04 {
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        System.out.println("请输入要删除的目录名：");
        String name = scan.nextLine();
        File file = new File("./" + name);
        if (file.exists()) {
            file.delete();
            System.out.println("已删除");
        } else {
            System.out.println("不存在");
        }
    }
}
